import Vue from 'vue'
import VueRouter from 'vue-router'
import Layout from  '@/views/layout'
import Crateoder from  '@/views/crateoder'
import Payresult from  '@/views/payresult'
import Querypay from  '@/views/querypay'

Vue.use(VueRouter)
const router = new VueRouter({
  routes: [
    { path: '/', redirect: '/layout'},
    { path: '/layout', name: 'LayoutIndex', component: Layout },
    { path: '/crateoder', name: 'CratteOderIndex', component: Crateoder },
    { path: '/payresult', name: 'PayResultIndex', component: Payresult },
    { path: '/querypay', name: 'QueryPayIndex', component: Querypay },
  ]
})

export default router
